import { request } from "./"
// 保存数据
export const saveData = function (params) {
    console.log(params, 'params')
    return request.post('/logic/model', params)
}
// 获取数据
export const getSchemaById = function (id) {
    return request.get(`/logic/model/${id}/schema`)
}
// 修改数据
export const updateDataById = function (id, params) {
    return request.put(`/logic/model/${id}/schema`, params)
}
// 测试数据
export const testDataById = function (id, params) {
    return request.post(`/logic/model/${id}/test`, params)
}
// 发布数据
export const deployById = function (id) {
    return request.post(`/logic/model/${id}/deploy`)
}
